package com.fr.schedule.entry;

import com.fr.base.FRContext;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Configuration
{
  private Properties properties = null;

  public Configuration configure()
  {
    configure("/com/fr/schedule/entry/jdbc.properties");
    return this;
  }

  public Configuration configure(String paramString)
  {
    InputStream localInputStream = Configuration.class.getResourceAsStream(paramString);
    if (this.properties == null)
      this.properties = new Properties();
    try
    {
      this.properties.load(localInputStream);
    }
    catch (IOException localIOException)
    {
      FRContext.getLogger().log(Level.WARNING, localIOException.getMessage(), localIOException);
    }
    return this;
  }

  public String getProperty(String paramString)
  {
    return this.properties.getProperty(paramString);
  }
}